package com.mayuhao.userteacher.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mayuhao.userteacher.entity.CssChooseCourse;
import com.mayuhao.userteacher.entity.CssStudentVO;
import com.mayuhao.userteacher.entity.UserTeacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 马宇豪
 * @since 2022-10-27
 */
public interface UserTeacherMapper extends BaseMapper<CssChooseCourse> {

    /**
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.mayuhao.userteacher.entity.UserTeacher>
     * @description 请修改方法描述
     * @methodName teacherCourse
     * @params [userStudentPage, searchId, searchName]
     * @paramType [com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.mayuhao.userteacher.entity.UserTeacher>, java.lang.String, java.lang.String]
     * @author 马宇豪
     * @date 2022/10/31 0031 下午 2:08
     * @email 1757442521@qq.com
     **/
    Page<UserTeacher> teacherCourse(Page<UserTeacher> userStudentPage, @Param("teacherId") String teacherId, @Param("searchId") String searchId, @Param("searchName") String searchName);

    /**
     * @return java.util.List<com.mayuhao.userteacher.entity.UserTeacher>
     * @description 请修改方法描述
     * @methodName selectCourse
     * @params [teacherId]
     * @paramType [java.lang.String]
     * @author 马宇豪
     * @date 2022/10/31 0031 下午 4:38
     * @email 1757442521@qq.com
     **/
    List<UserTeacher> selectCourse(@Param("teacherId") String teacherId);

    /**
     * @return java.util.List<com.mayuhao.userteacher.entity.CssStudentVO>
     * @description 请修改方法描述
     * @methodName boundStudent
     * @params [courseId]
     * @paramType [java.lang.String]
     * @author 马宇豪
     * @date 2022/10/31 0031 下午 5:26
     * @email 1757442521@qq.com
     **/
    Page<CssStudentVO> boundStudentPage(Page<CssStudentVO> cssTeacherVOPage, @Param("courseId") String courseId, @Param("searchId") String searchId, @Param("searchName") String searchName);

    /**
     * @return boolean
     * @description 请修改方法描述
     * @methodName savecourseScore
     * @params [studentId, courseScore]
     * @paramType [java.lang.String, java.lang.String]
     * @author 马宇豪
     * @date 2022/10/31 0031 下午 8:22
     * @email 1757442521@qq.com
     **/
    boolean savecourseScore(@Param("studentId") String studentId, @Param("courseScore") String courseScore);
}
